package fair;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
//import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.CountDownLatch;

/**
 * @author fair
 */
@SpringBootApplication
@EnableDubbo
@MapperScan("fair.mapper")
public class ProviderMainApplication {

    private static CountDownLatch countDownLatch = new CountDownLatch(1);

    public static void main(String[] args) {
        System.setProperty("nacos.standalone", "true");
        SpringApplication.run(ProviderMainApplication.class, args).registerShutdownHook();
        try {
            countDownLatch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
